package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysThesauriWordModuleMapper;
import com.ruoyi.system.domain.SysThesauriWordModule;
import com.ruoyi.system.service.ISysThesauriWordModuleService;

/**
 * 叙词模版Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-08-22
 */
@Service
public class SysThesauriWordModuleServiceImpl implements ISysThesauriWordModuleService 
{
    @Autowired
    private SysThesauriWordModuleMapper sysThesauriWordModuleMapper;

    /**
     * 查询叙词模版
     * 
     * @param id 叙词模版主键
     * @return 叙词模版
     */
    @Override
    public SysThesauriWordModule selectSysThesauriWordModuleById(Long id)
    {
        return sysThesauriWordModuleMapper.selectSysThesauriWordModuleById(id);
    }

    /**
     * 查询叙词模版列表
     * 
     * @param sysThesauriWordModule 叙词模版
     * @return 叙词模版
     */
    @Override
    public List<SysThesauriWordModule> selectSysThesauriWordModuleList(SysThesauriWordModule sysThesauriWordModule)
    {
        return sysThesauriWordModuleMapper.selectSysThesauriWordModuleList(sysThesauriWordModule);
    }

    /**
     * 新增叙词模版
     * 
     * @param sysThesauriWordModule 叙词模版
     * @return 结果
     */
    @Override
    public int insertSysThesauriWordModule(SysThesauriWordModule sysThesauriWordModule)
    {
        return sysThesauriWordModuleMapper.insertSysThesauriWordModule(sysThesauriWordModule);
    }

    /**
     * 修改叙词模版
     * 
     * @param sysThesauriWordModule 叙词模版
     * @return 结果
     */
    @Override
    public int updateSysThesauriWordModule(SysThesauriWordModule sysThesauriWordModule)
    {
        return sysThesauriWordModuleMapper.updateSysThesauriWordModule(sysThesauriWordModule);
    }

    /**
     * 批量删除叙词模版
     * 
     * @param ids 需要删除的叙词模版主键
     * @return 结果
     */
    @Override
    public int deleteSysThesauriWordModuleByIds(Long[] ids)
    {
        return sysThesauriWordModuleMapper.deleteSysThesauriWordModuleByIds(ids);
    }

    /**
     * 删除叙词模版信息
     * 
     * @param id 叙词模版主键
     * @return 结果
     */
    @Override
    public int deleteSysThesauriWordModuleById(Long id)
    {
        return sysThesauriWordModuleMapper.deleteSysThesauriWordModuleById(id);
    }
}
